#ifndef NEWDDSDEVICEDIALOG_H
#define NEWDDSDEVICEDIALOG_H

#include <QDialog>
#include "corelibglobal.h"
namespace Ui {
class NewDdsDeviceDialog;
}

class CORELIB_EXPORT NewDdsDeviceDialog : public QDialog
{
    Q_OBJECT

public:
    explicit NewDdsDeviceDialog(QWidget *parent = nullptr);
    ~NewDdsDeviceDialog();

    void load(const QString &szName);
    void save(const QString &szName);
public:
    QString m_szDeviceName;
    QVector<QPair<QString, QString>> m_properties;
    QVector<QPair<QString, QString>> m_propType;
public:
    QString GetDeviceName() const;
    QString pluginName() const;
    // 更新PropertyEditor数据
    void updatePropertyEditor();
private:
    Ui::NewDdsDeviceDialog *ui;
};

#endif // NEWDDSDEVICEDIALOG_H
